package com.pencilisland.pay.mgt.console.repository;

import java.util.List;

import org.springframework.data.repository.CrudRepository;

import com.pencilisland.pay.mgt.console.entity.SysMenu;

public interface MenuRepository extends CrudRepository<SysMenu, Long> {

	List<SysMenu> findByMenuParentOrderByMenuWeightAsc(long parent);

	SysMenu findByMenuName(String menuName);

}
